package org.aksw.xoperator.sparql;

import java.util.Date;
import java.util.concurrent.Callable;
import java.util.concurrent.FutureTask;

/**
 * Customized FutureTask allowing a more precise monitoring of the Task.
 * @author joerg
 *
 */
public class SparqlExecutionFuture<V> extends FutureTask {
	
	private String store;
	
	private Date creationTime;
	
	private Date finishedTime;
	
	private String query;

	public SparqlExecutionFuture(Callable<V> callable, String store, String query) {
		super(callable);
		creationTime = new Date();
		this.store = store;
		this.query = query;
		
	}
	

	public String getQuery() {
		return query;
	}


	public Date getFinishedTime() {
		return finishedTime;
	}

	public void setFinishedTime(Date finishedTime) {
		this.finishedTime = finishedTime;
	}

	public Date getCreationTime() {
		return creationTime;
	}

	public String getStore() {
		return store;
	}

}
